export enum RouterKey {
  Root = 'Root',
  Home = 'Home',
  Me = 'Me',
  Login = 'Login',
  Setting = 'Setting',
  Demo = 'Demo',
  UserGuide = 'UserGuide',
  DeviceGuide = 'DeviceGuide',
  BluetoothGuide = 'BluetoothGuide',
  ForbidUser = 'ForbidUser',
  AboutUs = 'AboutUs',
  WebView = 'WebView'
}

export type RootStackParamList = {
  [RouterKey.Root]: undefined;
  [RouterKey.Home]: undefined;
  [RouterKey.Me]: undefined;
  [RouterKey.Login]: undefined;
  [RouterKey.Demo]: undefined;
  [RouterKey.Setting]: undefined;
  [RouterKey.DeviceGuide]: { fromPage: string, title?:string }
  [RouterKey.BluetoothGuide]: { fromPage: string }
  [RouterKey.ForbidUser]: undefined,
  [RouterKey.AboutUs]: undefined
  [RouterKey.WebView]: { url:string, title: string }
};
